package hanqi.jdbc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    CustomerDao customerDao;
    public int saveCustomer(Customer customer) {
        return customerDao.saveCustomer(customer);
    }
    public Customer getCustomerById(Integer id) {
        return customerDao.getCustomerById(id);
    }
}
